#
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL"), version 1.0.
# You may only use this file in accordance with the terms of version
# 1.0 of the CDDL.
#
# A full copy of the text of the CDDL should have accompanied this
# source.  A copy of the CDDL is also available via the Internet at
# http://www.illumos.org/license/CDDL.
#

#
# Copyright 2015 Garrett D'Amore <garrett@damore.org>
# Copyright 2015, OmniTI Computer Consulting, Inc. All Rights Reserved.
# Copyright 2016 Joyent, Inc.
#

#
# Definitions found in stdlib.h
#

#
# Types.
#
type |	size_t		| stdlib.h | ALL

#
# Values.
#
value |	EXIT_FAILURE	| int		| stdlib.h | ALL
value |	EXIT_SUCCESS	| int		| stdlib.h | ALL
value |	NULL		| void *	| stdlib.h | ALL

#
# Functions
#
func |	aligned_alloc							|\
	void *								|\
	size_t; size_t							|\
	stdlib.h							|\
	-ALL C11

func |	at_quick_exit							|\
	int								|\
	void (*)(void)							|\
	stdlib.h							|\
	-ALL C11

func |	calloc								|\
	void *								|\
	size_t; size_t							|\
	stdlib.h							|\
	ALL

func |	exit								|\
	void								|\
	int								|\
	stdlib.h							|\
	ALL

func |	free								|\
	void								|\
	void *								|\
	stdlib.h							|\
	ALL

func |	malloc								|\
	void *								|\
	size_t								|\
	stdlib.h							|\
	ALL

func |	mkstemp								|\
	int								|\
	char *								|\
	stdlib.h							|\
	C90 C99 SUSv1+

func |	mkostemp							|\
	int								|\
	char *; int							|\
	stdlib.h							|\
	-ALL

func |	mkstemps							|\
	int								|\
	char *; int							|\
	stdlib.h							|\
	C90 C99

func |	mkostemps							|\
	int								|\
	char *; int; int						|\
	stdlib.h							|\
	-ALL

func |	mkdtemp								|\
	char *								|\
	char *								|\
	stdlib.h							|\
	-ALL SUSv4+

func |	quick_exit							|\
	void								|\
	int								|\
	stdlib.h							|\
	-ALL C11

func |	qsort								|\
	void								|\
	void *; size_t; size_t; int (*)(const void *, const void *)	|\
	stdlib.h							|\
	ALL

func |	qsort_r										|\
	void										|\
	void *; size_t; size_t; int (*)(const void *, const void *, void *), void *	|\
	stdlib.h									|\
	-ALL
